package com.zengdada.dml.service;

import com.zengdada.authority.utils.mapper.Page;
import com.zengdada.dml.model.type.StaticSelect;
import com.zengdada.dml.utils.DmlExecuteReturn;

import javax.servlet.http.HttpServletRequest;

/**
 * @Auther: 12614
 * @Contact: 1261438511@qq.com
 * @Date: 2019-02-19 15:51
 * @Description:
 */
public interface PlatDmlAuthorityService {


    /**
     * 执行dml查询
     *
     * @param dmlId
     * @param request
     * @param page  分页信息
     * @param searchs 搜索语句
     * @param selectType 查询类型
     * @return
     */
    DmlExecuteReturn query(String dmlId, HttpServletRequest request, Page page, String searchs, StaticSelect.SelectType selectType);

    /**
     * dml语句操作数据 （包含语句块、方法、过程）
     *
     * @param dmlId
     * @param request
     * @return
     */
    DmlExecuteReturn save(String dmlId, HttpServletRequest request);

}
